package com.etoak.car.mapper;

import com.etoak.car.bean.Car;
import com.etoak.car.bean.Order;
import com.etoak.car.bean.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    List<Order> querySome();

    int delOrder(int id);

    List<Order> querySomeUser(int id);

    Order queryDate(int id);

    int upHuanCarTime(String huandate,int id);

    int upCarStatus(int carid);

    Car getCarPrice(int carid);

    Users queryMoney(int userid);

    Users upOrderjifen(int userid);

    int upOrderUserMoney(@Param("userid") int userid,@Param("money") double money);

    int setZuMoney(@Param("userid") int userid,@Param("carid") int caid,@Param("orderPrice") double orderPrice);

    List<Order> queryByIds(String[] idss);
}
